home *** CD-ROM | disk | FTP | other *** search
Java Source | 2005-11-07 | 18.1 KB | 342 lines |
- // _BirthdayCalendarPrefs_EOArchive.java
- // Generated by EnterpriseObjects palette at Donnerstag, 18. November 2004 17:55 Uhr Europe/Berlin
-
- import com.webobjects.eoapplication.*;
- import com.webobjects.eocontrol.*;
- import com.webobjects.eointerface.*;
- import com.webobjects.eointerface.swing.*;
- import com.webobjects.foundation.*;
- import java.awt.*;
- import javax.swing.*;
- import javax.swing.border.*;
- import javax.swing.table.*;
- import javax.swing.text.*;
-
- public class _BirthdayCalendarPrefs_EOArchive extends com.webobjects.eoapplication.EOArchive {
- IBHelpConnector _iBHelpConnector0, _iBHelpConnector1;
- com.webobjects.eointerface.swing.EOFrame _eoFrame0;
- com.webobjects.eointerface.swing.EOTextField _nsTextField0, _nsTextField1, _nsTextField2, _nsTextField3, _nsTextField4;
- com.webobjects.eointerface.swing.EOView _nsBox0, _nsBox1;
- com.webobjects.foundation.NSNumberFormatter _nsNumberFormatter0;
- javax.swing.JButton _nsButton0, _nsButton1, _nsButton2;
- javax.swing.JCheckBox _nsButton3, _nsButton4, _nsButton5;
- javax.swing.JComboBox _popup0;
- javax.swing.JPanel _nsView0;
-
- public _BirthdayCalendarPrefs_EOArchive(Object owner, NSDisposableRegistry registry) {
- super(owner, registry);
- }
-
- protected void _construct() {
- Object owner = _owner();
- EOArchive._ObjectInstantiationDelegate delegate = (owner instanceof EOArchive._ObjectInstantiationDelegate) ? (EOArchive._ObjectInstantiationDelegate)owner : null;
- Object replacement;
-
- super._construct();
-
- _nsNumberFormatter0 = (com.webobjects.foundation.NSNumberFormatter)_registered(new com.webobjects.foundation.NSNumberFormatter("0;-0"), "");
- _nsTextField4 = (com.webobjects.eointerface.swing.EOTextField)_registered(new com.webobjects.eointerface.swing.EOTextField(), "NSTextField1111112");
- _nsBox1 = (com.webobjects.eointerface.swing.EOView)_registered(new com.webobjects.eointerface.swing.EOView(), "NSView");
- _nsBox0 = (com.webobjects.eointerface.swing.EOView)_registered(new com.webobjects.eointerface.swing.EOView(), "NSBox1");
- _nsTextField3 = (com.webobjects.eointerface.swing.EOTextField)_registered(new com.webobjects.eointerface.swing.EOTextField(), "NSTextField2");
- _nsTextField2 = (com.webobjects.eointerface.swing.EOTextField)_registered(new com.webobjects.eointerface.swing.EOTextField(), "NSTextField111111");
- _iBHelpConnector1 = (IBHelpConnector)_registered(new IBHelpConnector(), "");
- _nsButton2 = (javax.swing.JButton)_registered(new javax.swing.JButton(""), "NSButton31");
- _iBHelpConnector0 = (IBHelpConnector)_registered(new IBHelpConnector(), "");
-
- if ((delegate != null) && ((replacement = delegate.objectForOutletPath(this, "doAlarmField2")) != null)) {
- _nsButton1 = (replacement == EOArchive._ObjectInstantiationDelegate.NullObject) ? null : (javax.swing.JButton)replacement;
- _replacedObjects.setObjectForKey(replacement, "_nsButton1");
- } else {
- _nsButton1 = (javax.swing.JButton)_registered(new javax.swing.JButton("days in advance"), "NSButton4");
- }
-
- if ((delegate != null) && ((replacement = delegate.objectForOutletPath(this, "registerNoteLabel")) != null)) {
- _nsTextField1 = (replacement == EOArchive._ObjectInstantiationDelegate.NullObject) ? null : (com.webobjects.eointerface.swing.EOTextField)replacement;
- _replacedObjects.setObjectForKey(replacement, "_nsTextField1");
- } else {
- _nsTextField1 = (com.webobjects.eointerface.swing.EOTextField)_registered(new com.webobjects.eointerface.swing.EOTextField(), "NSTextField1111111");
- }
-
- if ((delegate != null) && ((replacement = delegate.objectForOutletPath(this, "_lastKeyView")) != null)) {
- _nsButton5 = (replacement == EOArchive._ObjectInstantiationDelegate.NullObject) ? null : (javax.swing.JCheckBox)replacement;
- _replacedObjects.setObjectForKey(replacement, "_nsButton5");
- } else {
- _nsButton5 = (javax.swing.JCheckBox)_registered(new javax.swing.JCheckBox("add sound to message"), "NSButton11");
- }
-
- if ((delegate != null) && ((replacement = delegate.objectForOutletPath(this, "updateCalendarButton")) != null)) {
- _nsButton0 = (replacement == EOArchive._ObjectInstantiationDelegate.NullObject) ? null : (javax.swing.JButton)replacement;
- _replacedObjects.setObjectForKey(replacement, "_nsButton0");
- } else {
- _nsButton0 = (javax.swing.JButton)_registered(new javax.swing.JButton("Copy Now"), "NSButton2");
- }
-
- if ((delegate != null) && ((replacement = delegate.objectForOutletPath(this, "_firstKeyView.nextFocusableComponent.nextFocusableComponent.nextFocusableComponent")) != null)) {
- _nsTextField0 = (replacement == EOArchive._ObjectInstantiationDelegate.NullObject) ? null : (com.webobjects.eointerface.swing.EOTextField)replacement;
- _replacedObjects.setObjectForKey(replacement, "_nsTextField0");
- } else {
- _nsTextField0 = (com.webobjects.eointerface.swing.EOTextField)_registered(new com.webobjects.eointerface.swing.EOTextField(), "NSTextField");
- }
-
- if ((delegate != null) && ((replacement = delegate.objectForOutletPath(this, "_firstKeyView.nextFocusableComponent.nextFocusableComponent")) != null)) {
- _nsButton4 = (replacement == EOArchive._ObjectInstantiationDelegate.NullObject) ? null : (javax.swing.JCheckBox)replacement;
- _replacedObjects.setObjectForKey(replacement, "_nsButton4");
- } else {
- _nsButton4 = (javax.swing.JCheckBox)_registered(new javax.swing.JCheckBox(""), "NSButton1");
- }
-
- if ((delegate != null) && ((replacement = delegate.objectForOutletPath(this, "_firstKeyView.nextFocusableComponent")) != null)) {
- _popup0 = (replacement == EOArchive._ObjectInstantiationDelegate.NullObject) ? null : (javax.swing.JComboBox)replacement;
- _replacedObjects.setObjectForKey(replacement, "_popup0");
- } else {
- _popup0 = (javax.swing.JComboBox)_registered(new javax.swing.JComboBox(), "NSPopUpButton");
- }
-
- if ((delegate != null) && ((replacement = delegate.objectForOutletPath(this, "_firstKeyView")) != null)) {
- _nsButton3 = (replacement == EOArchive._ObjectInstantiationDelegate.NullObject) ? null : (javax.swing.JCheckBox)replacement;
- _replacedObjects.setObjectForKey(replacement, "_nsButton3");
- } else {
- _nsButton3 = (javax.swing.JCheckBox)_registered(new javax.swing.JCheckBox("Copy birthdays into this iCal calendar:"), "NSButton");
- }
-
- if ((delegate != null) && ((replacement = delegate.objectForOutletPath(this, "_window")) != null)) {
- _eoFrame0 = (replacement == EOArchive._ObjectInstantiationDelegate.NullObject) ? null : (com.webobjects.eointerface.swing.EOFrame)replacement;
- _replacedObjects.setObjectForKey(replacement, "_eoFrame0");
- } else {
- _eoFrame0 = (com.webobjects.eointerface.swing.EOFrame)_registered(new com.webobjects.eointerface.swing.EOFrame(), "Window");
- }
-
- _nsView0 = (JPanel)_eoFrame0.getContentPane();
- }
-
- protected void _awaken() {
- super._awaken();
- _popup0.addActionListener((com.webobjects.eointerface.swing.EOControlActionAdapter)_registered(new com.webobjects.eointerface.swing.EOControlActionAdapter(_owner(), "birthdayCalendarChanged", _popup0), ""));
- _nsButton4.addActionListener((com.webobjects.eointerface.swing.EOControlActionAdapter)_registered(new com.webobjects.eointerface.swing.EOControlActionAdapter(_owner(), "updatePreferences", _nsButton4), ""));
- _nsButton3.addActionListener((com.webobjects.eointerface.swing.EOControlActionAdapter)_registered(new com.webobjects.eointerface.swing.EOControlActionAdapter(_owner(), "updatePreferences", _nsButton3), ""));
-
- if (_replacedObjects.objectForKey("_eoFrame0") == null) {
- _connect(_eoFrame0, _owner(), "delegate");
- }
-
- if (_replacedObjects.objectForKey("_nsButton1") == null) {
- _connect(_owner(), _nsButton1, "doAlarmField2");
- }
-
- if (_replacedObjects.objectForKey("_nsTextField1") == null) {
- _connect(_owner(), _nsTextField1, "registerNoteLabel");
- }
-
- if (_replacedObjects.objectForKey("_nsButton5") == null) {
- _connect(_owner(), _nsButton5, "_lastKeyView");
- }
-
- _nsButton5.addActionListener((com.webobjects.eointerface.swing.EOControlActionAdapter)_registered(new com.webobjects.eointerface.swing.EOControlActionAdapter(_owner(), "updatePreferences", _nsButton5), ""));
-
- if (_replacedObjects.objectForKey("_nsButton5") == null) {
- _connect(_owner(), _nsButton5, "useAudibleAlarmButton");
- }
-
- if (_replacedObjects.objectForKey("_nsButton4") == null) {
- _connect(_owner(), _nsButton4, "doAlarmField");
- }
-
- _nsButton0.addActionListener((com.webobjects.eointerface.swing.EOControlActionAdapter)_registered(new com.webobjects.eointerface.swing.EOControlActionAdapter(_owner(), "updateBirthdayCalendar", _nsButton0), ""));
-
- if (_replacedObjects.objectForKey("_nsButton0") == null) {
- _connect(_owner(), _nsButton0, "updateCalendarButton");
- }
-
- if (_replacedObjects.objectForKey("_nsButton3") == null) {
- _connect(_owner(), _nsButton3, "_firstKeyView");
- }
-
- if (_replacedObjects.objectForKey("_nsButton3") == null) {
- _connect(_owner(), _nsButton3, "_initialKeyView");
- }
-
- if (_replacedObjects.objectForKey("_nsTextField0") == null) {
- _connect(_owner(), _nsTextField0, "dayAlarmField");
- }
-
- if (_replacedObjects.objectForKey("_popup0") == null) {
- _connect(_owner(), _popup0, "calendarPopup");
- }
-
- if (_replacedObjects.objectForKey("_nsButton3") == null) {
- _connect(_owner(), _nsButton3, "doSyncField");
- }
-
- if (_replacedObjects.objectForKey("_eoFrame0") == null) {
- _connect(_owner(), _eoFrame0, "_window");
- }
-
- _nsTextField0.addActionListener((com.webobjects.eointerface.swing.EOControlActionAdapter)_registered(new com.webobjects.eointerface.swing.EOControlActionAdapter(_owner(), "updatePreferences", _nsTextField0), ""));
-
- if (_replacedObjects.objectForKey("_popup0") == null) {
- _popup0.setModel(new javax.swing.DefaultComboBoxModel());
- _popup0.addItem("Private");
- _popup0.addItem("Job");
- }
- }
-
- protected void _init() {
- super._init();
- _nsNumberFormatter0.setMinimum(new java.math.BigDecimal("1"));
- _nsNumberFormatter0.setMaximum(new java.math.BigDecimal("31"));
- _setFontForComponent(_nsTextField4, "Lucida Grande", 10, Font.PLAIN);
- _nsTextField4.setEditable(false);
- _nsTextField4.setOpaque(false);
- _nsTextField4.setText("These settings only affect newly created entries. Use 'Copy Now' to update all.");
- _nsTextField4.setHorizontalAlignment(javax.swing.JTextField.LEFT);
- _nsTextField4.setSelectable(false);
- _nsTextField4.setEnabled(true);
- _nsTextField4.setBorder(null);
- if (!(_nsBox0.getLayout() instanceof EOViewLayout)) { _nsBox0.setLayout(new EOViewLayout()); }
- _nsBox1.setSize(125, 1);
- _nsBox1.setLocation(2, 2);
- ((EOViewLayout)_nsBox0.getLayout()).setAutosizingMask(_nsBox1, EOViewLayout.MinYMargin);
- _nsBox0.add(_nsBox1);
- _nsBox0.setBorder(new com.webobjects.eointerface.swing._EODefaultBorder("", true, "Lucida Grande", 13, Font.PLAIN));
- _setFontForComponent(_nsTextField3, "Lucida Grande", 13, Font.PLAIN);
- _nsTextField3.setEditable(false);
- _nsTextField3.setOpaque(false);
- _nsTextField3.setText("Default Birthday Alarm");
- _nsTextField3.setHorizontalAlignment(javax.swing.JTextField.LEFT);
- _nsTextField3.setSelectable(false);
- _nsTextField3.setEnabled(true);
- _nsTextField3.setBorder(null);
- _setFontForComponent(_nsTextField2, "Lucida Grande", 10, Font.PLAIN);
- _nsTextField2.setEditable(false);
- _nsTextField2.setOpaque(false);
- _nsTextField2.setText("It is recommended to create an extra birthday calendar in iCal for copying birthdays as calendar copying is not undoable.");
- _nsTextField2.setHorizontalAlignment(javax.swing.JTextField.LEFT);
- _nsTextField2.setSelectable(false);
- _nsTextField2.setEnabled(true);
- _nsTextField2.setBorder(null);
- _setFontForComponent(_nsButton2, "Lucida Grande", 13, Font.PLAIN + Font.BOLD);
- _nsButton2.setMargin(new Insets(0, 2, 0, 2));
-
- if (_replacedObjects.objectForKey("_nsButton1") == null) {
- _setFontForComponent(_nsButton1, "Lucida Grande", 13, Font.PLAIN);
- _nsButton1.setMargin(new Insets(0, 2, 0, 2));
- }
-
- if (_replacedObjects.objectForKey("_nsTextField1") == null) {
- _setFontForComponent(_nsTextField1, "Lucida Grande", 10, Font.PLAIN);
- _nsTextField1.setEditable(false);
- _nsTextField1.setOpaque(false);
- _nsTextField1.setText("Please register to enable this feature.");
- _nsTextField1.setHorizontalAlignment(javax.swing.JTextField.CENTER);
- _nsTextField1.setSelectable(false);
- _nsTextField1.setEnabled(true);
- _nsTextField1.setBorder(null);
- }
-
- if (_replacedObjects.objectForKey("_nsButton5") == null) {
- _setFontForComponent(_nsButton5, "Lucida Grande", 13, Font.PLAIN);
- }
-
- if (_replacedObjects.objectForKey("_nsButton0") == null) {
- _setFontForComponent(_nsButton0, "Lucida Grande", 13, Font.PLAIN);
- _nsButton0.setMargin(new Insets(0, 2, 0, 2));
- }
-
- if (_replacedObjects.objectForKey("_nsTextField0") == null) {
- _setFontForComponent(_nsTextField0, "Lucida Grande", 11, Font.PLAIN);
- _nsTextField0.setEditable(true);
- _nsTextField0.setOpaque(true);
- _nsTextField0.setText("2");
- _nsTextField0.setHorizontalAlignment(javax.swing.JTextField.CENTER);
- _nsTextField0.setSelectable(true);
- _nsTextField0.setEnabled(true);
- }
-
- if (_replacedObjects.objectForKey("_nsButton4") == null) {
- _connect(_nsButton4, _nsTextField0, "nextFocusableComponent");
- }
-
- if (_replacedObjects.objectForKey("_nsButton4") == null) {
- _setFontForComponent(_nsButton4, "Lucida Grande", 13, Font.PLAIN);
- }
-
- if (_replacedObjects.objectForKey("_popup0") == null) {
- _connect(_popup0, _nsButton4, "nextFocusableComponent");
- }
-
- if (_replacedObjects.objectForKey("_popup0") == null) {
- _setFontForComponent(_popup0, "Lucida Grande", 13, Font.PLAIN);
- }
-
- if (_replacedObjects.objectForKey("_nsButton3") == null) {
- _connect(_nsButton3, _popup0, "nextFocusableComponent");
- }
-
- if (_replacedObjects.objectForKey("_nsButton3") == null) {
- _setFontForComponent(_nsButton3, "Lucida Grande", 13, Font.PLAIN);
- }
-
- if (!(_nsView0.getLayout() instanceof EOViewLayout)) { _nsView0.setLayout(new EOViewLayout()); }
- _nsButton3.setSize(328, 17);
- _nsButton3.setLocation(11, 13);
- ((EOViewLayout)_nsView0.getLayout()).setAutosizingMask(_nsButton3, EOViewLayout.MinYMargin);
- _nsView0.add(_nsButton3);
- _popup0.setSize(235, 26);
- _popup0.setLocation(34, 37);
- ((EOViewLayout)_nsView0.getLayout()).setAutosizingMask(_popup0, EOViewLayout.MinYMargin);
- _nsView0.add(_popup0);
- _nsButton0.setSize(147, 26);
- _nsButton0.setLocation(280, 37);
- ((EOViewLayout)_nsView0.getLayout()).setAutosizingMask(_nsButton0, EOViewLayout.MinYMargin);
- _nsView0.add(_nsButton0);
- _nsButton4.setSize(29, 17);
- _nsButton4.setLocation(40, 150);
- ((EOViewLayout)_nsView0.getLayout()).setAutosizingMask(_nsButton4, EOViewLayout.MinYMargin);
- _nsView0.add(_nsButton4);
- _nsTextField0.setSize(27, 19);
- _nsTextField0.setLocation(65, 148);
- ((EOViewLayout)_nsView0.getLayout()).setAutosizingMask(_nsTextField0, EOViewLayout.MinYMargin);
- _nsView0.add(_nsTextField0);
- _nsButton5.setSize(341, 17);
- _nsButton5.setLocation(61, 172);
- ((EOViewLayout)_nsView0.getLayout()).setAutosizingMask(_nsButton5, EOViewLayout.MinYMargin);
- _nsView0.add(_nsButton5);
- _nsTextField1.setSize(358, 13);
- _nsTextField1.setLocation(40, 193);
- ((EOViewLayout)_nsView0.getLayout()).setAutosizingMask(_nsTextField1, EOViewLayout.MinYMargin);
- _nsView0.add(_nsTextField1);
- _nsButton1.setSize(189, 17);
- _nsButton1.setLocation(97, 149);
- ((EOViewLayout)_nsView0.getLayout()).setAutosizingMask(_nsButton1, EOViewLayout.MinYMargin);
- _nsView0.add(_nsButton1);
- _nsButton2.setSize(21, 24);
- _nsButton2.setLocation(402, 189);
- ((EOViewLayout)_nsView0.getLayout()).setAutosizingMask(_nsButton2, EOViewLayout.MinYMargin);
- _nsView0.add(_nsButton2);
- _nsTextField2.setSize(397, 41);
- _nsTextField2.setLocation(30, 66);
- ((EOViewLayout)_nsView0.getLayout()).setAutosizingMask(_nsTextField2, EOViewLayout.MinYMargin);
- _nsView0.add(_nsTextField2);
- _nsTextField3.setSize(213, 17);
- _nsTextField3.setLocation(30, 123);
- ((EOViewLayout)_nsView0.getLayout()).setAutosizingMask(_nsTextField3, EOViewLayout.MinYMargin);
- _nsView0.add(_nsTextField3);
- _nsBox0.setSize(391, 5);
- _nsBox0.setLocation(32, 107);
- ((EOViewLayout)_nsView0.getLayout()).setAutosizingMask(_nsBox0, EOViewLayout.MinYMargin);
- _nsView0.add(_nsBox0);
- _nsTextField4.setSize(148, 41);
- _nsTextField4.setLocation(279, 124);
- ((EOViewLayout)_nsView0.getLayout()).setAutosizingMask(_nsTextField4, EOViewLayout.MinYMargin);
- _nsView0.add(_nsTextField4);
-
- if (_replacedObjects.objectForKey("_eoFrame0") == null) {
- _nsView0.setSize(436, 220);
- _eoFrame0.setTitle("Birthdays");
- _eoFrame0.setLocation(50, 317);
- _eoFrame0.setSize(436, 220);
- }
- }
- }
-